Money.h++ gives you:
Money.h++ is a cross-platform, object-oriented, C++ class library that includes a set of types for exactly representing and manipulating decimal fractions. When you use Money.h++, rounding errors are history!
The built-in floating point types in C++ only approx-imate decimal numbers. With Money.h++, you get exact decimal arithmetic, with decimal classes that you use just like the floating point types.
You also get classes that let you maintain a fixed number of decimal places, and let you choose among several rounding methods. This is useful for representing, for example, a bank account, where there must always be exactly two decimal places. As the example code shows, rounding errors caused by using built-in types can result in accounting nightmares.
int
and long
types. Not only is your arithmetic precise, if underflow, overflow,
divide by zero, or other errors creep in, you have complete control over how to handle them.
Order now Money.h++ code example Tools.h++